﻿#ifndef CHAT_H
#define CHAT_H

#include "stdafx.h"
#include "ui_Chat.h"

class Chat : public QWidget
{
	Q_OBJECT

public:
	Chat(QWidget *parent = 0);
	~Chat();
    void paintEvent(QPaintEvent* event);
#ifdef Q_OS_WIN32
	void changeEvent(QEvent* event);
    bool nativeEvent(const QByteArray& eventType, void* message, long* result);
#endif

public slots:
#ifdef Q_OS_WIN32
    void on_minisizeSysButton_clicked();
    void on_maximizeSysButton_clicked();
    void on_closeSysButton_clicked();
#endif
    void on_signatureEdit_editingFinished();
    void on_fontQuickButton_clicked();
    void on_faceQuickButton_clicked();
    void on_closeButton_clicked();
    void on_sendButton_clicked();

private:
	Ui::Chat ui;

private:
    // 设置用户头像和特效
    void setUserPortrait(QPixmap pixmap = QPixmap());
};

#endif // CHAT_H
